package com.appkubes.mall.admin.application.user.account.history.service;

import com.appkubes.mall.core.entity.MallUserAccountHistory;
import com.appkubes.mall.core.service.BaseMallUserAccountHistoryService;

public interface UserAccountHistoryService extends BaseMallUserAccountHistoryService {

    /**
     * 获取账户记录信息, 已经根据三入参，设置了唯一性索引
     *
     * @param sourceType
     * @param sourceKey
     * @return
     */
    MallUserAccountHistory getAccountHistory(String sourceType, String sourceKey);

    /**
     * 减少参数，获取用户指定的账户订单佣金收入情况
     *
     * @param orderKey
     * @return
     */
    MallUserAccountHistory getAccountOrderHistory(String orderKey);

}
